Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make void argument explicit in function typedefs #396

Merged
merged 2 commits into from
Sep 7, 2023
Merged

Conversation

spllr
Copy link
Contributor

@spllr spllr commented Sep 5, 2023

CMake build could fail when building with -Werror and -Wstrict-prototypes due to implicit void argument in function typedefs.

This pull request adds explicit void arguments to the following:

  • typedef void (*lockPreemptionType) (void)
  • typedef void (*unlockPreemptionType) (void)
  • const char* fmi2GetVersion(void)
  • const char* fmi2GetTypesPlatform(void)

CMake build could fail when building with -Werror and
-Wstrict-prototypes due to implicit void argument in function typedefs.

This commit adds explicit void argument the following:

* typedef void (*lockPreemptionType)   (void);
* typedef void (*unlockPreemptionType) (void);
* const char* fmi2GetVersion(void)
* const char* fmi2GetTypesPlatform(void)
@spllr
Copy link
Contributor Author

spllr commented Sep 6, 2023

Hi @beutlich (or others). Is there any additional action required from me for this PR?

@t-sommer t-sommer merged commit b9b3cb9 into modelica:main Sep 7, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants